
package com.eshop.we.business.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.eshop.we.business.BaseBusinessImpl;
import com.eshop.we.business.FavoriteBusiness;
import com.eshop.we.favorite.api.FavoriteService;
import com.eshop.we.favorite.dto.FavoriteDto;
import com.eshop.we.favorite.entity.Favorite;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wangzhanguo
 * @create 2018-06-04 15:31
 **/
@Service
public class FavoriteBusinessImpl extends BaseBusinessImpl<Favorite,FavoriteService> implements FavoriteBusiness{
    @Reference
    private FavoriteService favoriteService;


    @Override
    public List<FavoriteDto> selectUserBooks(Integer userId) {
        return favoriteService.selectUserBooks(userId);
    }

    @Override
    public Integer updateFavoriteStatus(Integer favoriteId, Integer userId) {
        return favoriteService.updateFavoriteStatus(favoriteId, userId);
    }
}

